﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MultipleDB.Entitys
{
    /// <summary>
    /// 部门
    /// </summary>
    //[TenantAttribute("2")]
    public class Departments
    {
        /// <summary>
        /// ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string Department { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 0 停用 默认=1 启用
        /// </summary>
        public bool IsEnable { get; set; }

        /// <summary>
        /// 默认= 0 普通, 1 =系统
        /// </summary>
        public bool IsSystem { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public System.DateTime CreateTime { get; set; }
    }
}
